import request from "@/utils/request.js";

// 查看二维码信息接口

export function queryById(params) {
	return request.get("gqHealth/gqCardManager/queryById", params);
}
/**
 * 核销接口
 *
 */
export function checkCard(no) {
	return request.post(`gqHealth/gqCheckUpRecord/checkCard?no=${no}`);
}
/**
 * 医院列表
 *
 */
export function hospitaList(params) {
	return request.get("gqHealth/gqHospitalInfo/list", params);
}
/**
 * 用户体检卡列表
 *
 */
export function selectUserCard(params) {
	return request.get("gqHealth/gqCardManager/selectUserCard", params);
}
/**
 * 医院核销记录
 *
 */
export function hospitalSelectRecord(params) {
	return request.get("gqHealth/gqCheckUpRecord/hospitalSelectRecord", params);
}
/**
 * 用户体检记录
 *
 */
export function userSelectRecord(params) {
	return request.get("gqHealth/gqCheckUpRecord/userSelectRecord", params);
}
/**
 * 用户体检卡绑卡
 *
 */
export function bindUserCard(data) {
	return request.post(
		`gqHealth/gqCardManager/bindUserCard?no=${data.no}&validate=${data.validate}`
	);
}
/**
 * 上传报告
 *
 */
export function upReport(data) {
	return request.post("gqHealth/gqCheckUpRecord/edit", data);
}